package manager.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import manager.vo.Friend;

public interface FriendDAO {
	//查询朋友
   public List<Friend> selectFriend(Map<String,Object>map) throws Exception;
   //添加
   public int addFriend(Friend friend) throws Exception;
   //查询条数
   public int selectCount(Integer userid) throws Exception;
   //删除(两个参数以上必须加注解)
   public int deleteFriend(@Param("userid")Integer userid,@Param("id")Integer id) throws Exception;
   //更新
   public int updateFriend(Map<String,Object>map) throws Exception;
}
